草庐IT

Running Gradle task ‘assembleDebug‘

全部标签

mysql 5.7 登录报错:ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)

索引一、问题详情二、问题解析三、解决方案(root用户的密码错误)方案一:方案二:​一、问题详情输入mysql-uroot-p登录后出现拒绝访问,报错如图:​二、问题解析ERROR1045(28000):Accessdeniedforuser‘root‘@‘localhost‘(usingpassword:YES)译文:错误1045(28000):用户'root'@'localhost'(使用密码)拒绝访问对该报错进行解析,主要有两个方面:Accessdenied提示出现的可能情况:1)mysql的服务器停止:  若MySQL已经没有启动,重启MySQL服务器:  systemctlresta

mysql8在linux下安装出现/lib64/libstdc++.so.6: version `CXXABI_1.3.11‘ not found等问题

初始化的时候出现如下问题此处是因为安装的mysql版本问题,首先需要确定一下系统的glibc版本,使用如下命令rpm-qa|grepglibc所以在下载的时候需要选择对应的下载就可以了

解决 ImportError: cannot import name ‘metadata‘

报错截图:在导入nptdms时出现的错误python 版本为3.6.8nptdms版本为1.6.2解决方法为找到 version.py 文件位置,修改#fromimportlibimportmetadata#修改为:try:fromimportlibimportmetadataexceptImportError:#Runningonpre-3.8Python;useimportlib-metadatapackageimportimportlib_metadataasmetadata#type:ignore__version__=metadata.version('nptdms')__versi

【K3s】第39篇 解决couldn‘t get resource list for metrics.k8s.io/v1beta1: the server is currently unable ..

目录1、遇到问题 2、问题解决1、遇到问题couldn'tgetresourcelistformetrics.k8s.io/v1beta1:theserveriscurrentlyunabletohandletherequestcouldn'tgetresourcelistformetrics.k8s.io/v1beta1:theserveriscurrentlyunabletohandletherequest 遇到问题:

adb 时提示failed to connect to ‘192.168.210.173:5566‘: Connection refused(已解决)

问题描述:使用华为mate40手机在家调试,通过手机IP连接进行网络adb连接时,终端一直提示failedtoconnectto'192.168.210.173:5566':Connectionrefused。尝试方法:        1、重启手机、在网上搜索发现很多教程说是要使用setpropservice.adb.tcp.port5555,但我执行该命令一直提示:Failedtosetproperty'service.adb.tcp.port'to'5555'(未解决).        2、执行setpropservice.adb.tcp.port5555后执行stopadbd、start

丝滑解决ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29‘ not found问题

基础环境:MacOSm1、python=3.9前情提要:在Anaconda终端运行代码的时候,显示报错:importError:/usr/lib/x86_64-linux-gnu/libstdc++.so.6:version`GLIBCXX_3.4.29'notfound问题分析:根据提示是/usr/lib/x86_64-linux-gnu/路径下的libstdc++.so.6缺少版本GLIBCXX_3.4.29解决过程:我们可以输入以下指令查看当前路径下有哪些版本strings/usr/lib/x86_64-linux-gnu/libstdc++.so.6|grepGLIBCXXGLIBCX

vue项目报错解决,Uncaught TypeError: Cannot read properties of undefined (reading ‘install‘)

在做vue2项目时,使用路由vue-router,浏览器显示空白且报错如图 项目运行    出现此错误的原因是因为此时的项目为vue2,下载的vue-router包版本太高,将vue-router包更新至低版本即可解决,如 yarnaddvue-router@3.5.3 或npmi vue-router@3.5.3 

[问题解决]已在 GitHub 上成功创建项目 ‘xxx‘ ,但初始推送失败: Failed to connect to github.com port 443 after 75005 ms

在终端中输入:gitconfig--global--unsethttp.proxy用于从全局配置中移除HTTP代理设置。在Git中,如果您的计算机连接到Internet时需要使用代理服务器,那么您可能需要在Git中配置HTTP代理以便正常使用。使用gitconfig--globalhttp.proxy命令可以设置HTTP代理。如果您需要从全局配置中移除代理设置,可以使用gitconfig--global--unsethttp.proxy命令。移除代理设置后,Git将不再使用HTTP代理服务器进行网络连接,而是直接连接到互联网。这在某些情况下可能有助于解决Git连接问题。

Flutter Run 启动失败 Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac‘

flutterrunRunning"flutterpubget"inmain1...               703msUsinghardwarerenderingwithdevicesdkgphone64x8664.Ifyounoticegraphicsartifacts,considerenablingsoftwarerenderingwith"--enable-software-rendering".Launchinglib\main.dartonsdkgphone64x8664indebugmode...FAILURE:Buildfailedwithanexception.*Wha

Cannot read properties of undefined (reading ‘sendTransaction‘)

这个是因为没有引入和初始化 web3对象。原来的代码:sendBtn.onclick=async()=>{try{constaccounts=awaitethereum.request({method:'eth_requestAccounts'});console.info(accounts)web3.eth.sendTransaction({from:accounts[0],to:'0x4CCbD5D055fAd49d9278a6c43F1d27b9537737b5',value:100000000000000000,gas:21000,gasPrice:20000000000},(resu